package com.ayz.gateway.core.context.context;


import com.ayz.gateway.core.context.config.Configuration;
import com.ayz.gateway.core.core.Netty.NettyServerConfig;
import com.ayz.gateway.core.datasource.DatasourceFactory;
import com.ayz.gateway.core.session.processor.RpcPostProcessorRegistry;

/**
 * @ClassName ApiGatewayContextFactory
 * @Description TODO: 网关上下文创建工厂
 * @Author 快乐的星球
 * @Date 2023/5/7 12:05
 * @Version 1.0
 **/
public interface ApiGatewayContextFactory {
    public ApiGatewayContext openContext(Configuration configuration, NettyServerConfig serverConfig, DatasourceFactory datasourceFactory,
                                         RpcPostProcessorRegistry postProcessorRegistry);
}
